/**
 * 通用的接口
 */

const express = require('express')

// 通用Router
const GeneralAPIRouter = express.Router({
	mergeParams: true
})

// 获取岗位详情
GeneralAPIRouter.get('/internship/detail', require('./xingzheng/jobs/jobsDetail'))

// 获取岗位列表
GeneralAPIRouter.get('/internship/list', require('./xingzheng/jobs/jobsList'))

// 获取个人信息
GeneralAPIRouter.post('/getdetail', require('./student/getDetail'))

// 修改个人信息
GeneralAPIRouter.post('/setdetail', require('./student/setDetail'))

// 修改登陆密码
GeneralAPIRouter.post('/setpassword', require('./student/setPassword'))

// get year list
GeneralAPIRouter.get('/year/list', require('./xingzheng/year/list'))

// get topic details
GeneralAPIRouter.post('/setpassword', require('./student/setPassword'))

// get topic list
GeneralAPIRouter.get('/topic/getlist', require('./jiaoyan/topic/alllist'))

// get　topic detail
GeneralAPIRouter.post('/topic/detail', require('./jiaoyan/topic/detail'))


module.exports = GeneralAPIRouter